//
//  WLTableViewCell.m
//  KnowEveryThings
//
//  Created by lanou3g on 16/5/7.
//  Copyright © 2016年 王玲. All rights reserved.
//

#import "WLWLModelCell.h"
#import "UIImageView+WebCache.h"
@interface WLWLModelCell()
//大图片
@property (weak, nonatomic) IBOutlet UIImageView *image1;
//小图片1
@property (weak, nonatomic) IBOutlet UIImageView *image2;
//小图片2
@property (weak, nonatomic) IBOutlet UIImageView *image3;
//标题
@property (weak, nonatomic) IBOutlet UILabel *titlelabel;
//标签
@property (weak, nonatomic) IBOutlet UILabel *tatlelabelb;
@end
@implementation WLWLModelCell

- (void)setmodel:(WLWLModel *)model{
    if (_wlwlModel != model) {
        _wlwlModel = model;
    }
}


- (void)layoutSubviews{
    self.titlelabel.text = self.wlwlModel.title;
    self.tatlelabelb.text = self.wlwlModel.source;
    
    [self.image1 sd_setImageWithURL:[NSURL URLWithString:self.wlwlModel.imgsrc] placeholderImage:[UIImage imageNamed:@"bj1.jpg"]];
    
//        self.image1.image = [UIImage imageNamed:self.wlwlModel.img];
    self.image2.image = [UIImage imageNamed:self.wlwlModel.imgsrc];
    self.image3.image = [UIImage imageNamed:self.wlwlModel.imgsrc];
    
}
+ (CGFloat)height{
    return 200;
}

@end
